{extend name="Layout/layout"}
{block name="body_content"}
<ul class="nav nav-tabs" style='margin-bottom: 20px;'>
    {foreach $menus as $vo}
    {if condition="$vo['active']"}
    <li class="active"><a href="{$vo.url}">{$vo.title}</a></li>
    {else/}
    <li><a href="{$vo.url}">{$vo.title}</a></li>
    {/if}
    {/foreach}
</ul>
<!--表格头部工具栏-->
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">工具栏</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <button type="button" class="btn btn-danger navbar-btn xsui-btn-multi-remove" data-url="#?id=varkey">批量删除</button>
            <button type="button" class="btn btn-success navbar-btn xsui-btn-refresh">刷新</button>
            <form class="navbar-form navbar-right">
                <div class="form-group">
                    <input type="text" name="word" class="form-control" placeholder="关键词">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>
        </div>
    </div>
</nav>
<!--/表格工具栏-->
<!--表格-->
<div style="max-height: 310px; margin-bottom: 5px; overflow: auto;">
    <table class="table table-condensed table-bordered table-striped table-hover">
        <thead>
            <tr>
                <th class="xsui-cell-multi-check" style="width:20px;"><input type="checkbox" /></th>
                <th style="width:30px;">#</th>
                <th>用户名</th>
                <th>登录类型</th>
                <th>登录IP</th>
                <th>登录时间</th>
                <th>说明</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $key=>$vo}
            <tr data-key="{$vo.id}">
                <td class="xsui-cell-multi-check"><input type="checkbox" /></td>
                <td>{$key+1}</td>
                <td class="xsui-nowrap" title="{$vo.user_name}">{$vo.user_name}</td>
                <td class="xsui-nowrap" title="{$vo.is_login}">{$vo.is_login}</td>
                <td class="xsui-nowrap" title="{$vo.login_ip}">{$vo.login_ip}</td>
                <td class="xsui-nowrap" title="{$vo.login_time}">{$vo.login_time}</td>
                <td class="xsui-nowrap">{$vo.remark}</td>            
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>
<!--/表格-->
<!--分页-->
<nav >
    {$list->render()}
</nav>
<!--/分页-->
<script src="/skin/theme/sueuix5/ctrl/layout/layout.js"></script>
<script src="/skin/theme/sueuix5/ctrl/util/ifrmDialog-3.1.js"></script>
<script src="/skin/theme/sueuix5/plugin/jquery-togglelink-1.0/jquery-togglelink-1.0.min.js"></script>
<script type="text/javascript">
    // 2016-12-28
    $('.dropdown-toggle').dropdown();
    // 2016-12-29
    $(document).ready(function () {
        layout_ui_init();

    })
</script>
{/block}